package xyz.sekai52799;

import xyz.sekai52799.answer.a3001_a3200.*;
import xyz.sekai52799.utils.TreeNode;

public class Test {
    public static void main(String[] args) {
        Question3096 q = new Question3096();
        int[] ints = {1,0,1,0,1,0,1,1};
        int[] tem = {1,0,1,0};
        int[] f = {0,0};
        int i = q.minimumLevels(ints);
        System.out.println(i);
    }



    // 这只是用来创建TreeNode的测试用例
    //         1
    //        /  \
    //       5    3
    //        \  / \
    //        4  10 6
    //       / \
    //      9   2
    private static TreeNode initTree(){
        TreeNode n9 = new TreeNode(9);
        TreeNode n2 = new TreeNode(2);
        TreeNode n4 = new TreeNode(4, n9, n2);
        TreeNode n5 = new TreeNode(5, null, n4);
        TreeNode n10 = new TreeNode(10);
        TreeNode n6 = new TreeNode(6);
        TreeNode n3 = new TreeNode(3, n10, n6);
        TreeNode n1 = new TreeNode(1, n5, n3);
        return n1;
    }
}
